package com.xlh.support.training.service;

import com.xlh.support.training.po.TrainingReportSavePO;
import com.xlh.support.training.vo.TrainingReportVO;

import java.util.List;

/**
 * @author cheer
 */
public interface TrainingReportService {

    /**
     * 查询实验报告
     *
     * @param userId     用户Id
     * @param trainingId 实训Id
     * @return 实验报告
     */
    TrainingReportVO getTrainingReport(Long userId, Long trainingId);

    /**
     * 保存实验报告
     *
     * @param userId               用户Id
     * @param trainingId           实训Id
     * @param trainingReportSavePO 实验报告参数
     */
    void saveTrainingReport(Long userId, Long trainingId, TrainingReportSavePO trainingReportSavePO);

    /**
     * 下载实验报告
     *
     * @param userId     用户Id
     * @param trainingId 实训Id
     */
    void downloadTrainingReport(Long userId, Long trainingId);

    /**
     * 删除实验报告
     *
     * @param userIds 用户Id
     */
    void deleteTrainingReportByUserIds(List<Long> userIds);
}
